<?php
class cls_control_index extends cls_control_base
{
	function show()
	{
		$this->smarty->display('index/index.htm');
	}
	
	function menu_list()
	{
		$index_serve = parent::get_serve();
		$menu_list = $index_serve->get_menu_list();
		$this->smarty->assign('menus', $menu_list);
		$this->smarty->display('index/menu_list.htm');
	}

	function top()
	{
		$name = !empty($_SESSION['admin']['nick_name']) ? $_SESSION['admin']['nick_name']: $_SESSION['admin']['user_name'];
		$this->smarty->assign('name', $name);
		$this->smarty->display('index/top.htm');
	}
	
	function drag()
	{
		$this->smarty->display('index/drag.htm');
	}
	
	function welcome()
	{
		$index = array('a','b','c');
		$this->smarty->assign('test',$index);
		$this->smarty->display('index/welcome.htm');
	}
}